from odoo import fields, models, api, Command, _
from odoo.exceptions import UserError
from odoo.tools.float_utils import float_compare, float_is_zero


class SupplementMoDetail(models.Model):
    _name = 's.supplement.mo.detail'
    _description = 'Supplement MO Detail'

    sale_order_line = fields.Many2one('sale.order.line', string='Sale Order Line')
    development_line = fields.Many2one('s.research.and.development.order.line', string='Development Line')
    supplement_mrp_production = fields.Many2many('mrp.production', 'supplement_mrp_production', string='Supplement Mrp Production')
    origin_mrp_production = fields.Many2many('mrp.production', 'origin_mrp_production', string='Origin Mrp Production')
    qty = fields.Float(string='Qty')